<html>
 <head><title>Мотоциклы в Николаеве. Мотодневники {$userdata.username}
 </title>
   <meta name="keywords" lang="ru" content="Статьи: мотособытия, Покупка продажа мотоциклов в Николаеве купить продать мотоциклы в Николаеве мотоцикл Николаев мотоциклі николаевские байки байкеры байкеры">
   <meta http-equiv="Content-Type" content="text/html; charset=utf-8">  
   <link rel="Stylesheet" href="css/main.css">
 </head>
<body>  
	<table border="0" width="100%" height="100%" background="images/bgall.gif">
	<!--Лого, верхушка-->
		<tr>
			<td valign="top" colspan="2" height="125">
				<table width="100%" height="103" cellpadding="0" cellspacing="0">
					<tr>
						<td width="300" background="images/bglogo.gif"><a href="http://www.motolife.mk.ua"><img src="images/logo.gif"></img></a>
						</td>
						<td width="100%" background="images/bglogo.gif">
						</td>
					</tr>
				</table>
				{include file='site/sitemenu.tpl'}
			</td>
		</tr>
		<tr>
			<td  valign="top" style="padding-left:10px;padding-right:10px;padding-top:11px;">
				<table width="100%" cellpadding="0" cellspacing="0"  style="border: 1px #000000 solid;">
					<tr>
						<td background="images/menu_c_up.gif" height="28" align="center" class="title">
						Дневник <a href="forum/profile.php?mode=viewprofile&u={$userdata.user_id}" class="href7_a">{$userdata.username}</a> 
						</td>
					</tr>
					<tr>
						<td background="images/menu_c_c.gif" style="padding-top:10px;padding-right:10px;padding-left:10px;padding-bottom:10px;text-align:right;" class="href3_a">
							{if $isOwner}
								<a href="?jrn_act=addjrnl" title="Главная" class="href3_a">Добавить запись</a>
							{/if}
						</td>
					</tr>
					<tr>
						<td background="images/menu_c_c.gif" style="padding-top:10px;padding-right:10px;padding-left:10px;padding-bottom:10px" class="all">
							<table align="center" class="all" width="100%">
                                        <tr>
                                        	<td>
												
											<table border="0" class="all" width="100%">
											  <tr><td height="10"></td></tr>
											  {if $isJournal}
											  <tr>
											     <td align="center">
												   <b>{$journal[0].name}</b>
											     </td>
											   </tr>
											   <tr>
											     <td style="text-align:right;" class="date">
												   {$journal[0].date}
											     </td>
											   </tr>
											   <tr><td height="30"></td></tr>
											  <tr>
											     <td>
												   {$journal[0].text} 
											     </td>
											   </tr>
												{else}
												<tr><td align="center" height="100px">
													В дневнике нет ни одной записи
												</td></tr>
												{/if}
											   <tr><td height="20"></td></tr>											   
											</table>	
																				
                                            </td>
                                         </tr>
                                   </table>
						</td>
					</tr>
					<tr>
						<td background="images/menu_c_down.gif" height="9">
						</td>
					</tr>
				</table>
				{if $isJournal}
					<div align="right"><a href="javascript:" onClick="addComment();"><img src="images/comment.gif"></a></div>
					{if $isMember}
						<div id="comment" class="all" style="display:none;padding-top:20px" width="100%">
						<table width="100%">
							<form action="" method="post">
								<input type="hidden" name="jrn_act" value="addcomment">
								<tr><td>
									<textarea style="width:100%" rows="5" name="text"></textarea>
								</td></tr>
								<tr><td align="right">
									<input type="submit" value="Сохранить">
								</td></tr>
							</form>
						</table>
						</div>
					{else}
						<div id="comment" class="all" style="display:none;text-align:center;padding-top:20px;">
							Чтобы комментировать дневники, необходимо <a href="/forum/login.php" class="href3_a">авторизироваться</a> или <a href="/forum/profile.php?mode=register" class="href3_a">зарегистрироваться</a>.
						</div>
					{/if}
				{/if}
{literal}
   <script type="text/javascript">
		function addComment()
		{
			display = document.getElementById('comment').style.display;
			newDisplay = '';
			if (display == '')
			{
				newDisplay = 'none';
			}
			document.getElementById('comment').style.display = newDisplay;
		}
   </script>
{/literal}
	<div height="20px;">&nbsp;</div>
	<table width="100%">
	{section name=cmnts loop=$commentsAr}
		<tr bgcolor="#aaaaaa" class="all">
			<td bgcolor="#aaaaaa" class="all">                              
				<b><a href="forum/profile.php?mode=viewprofile&u={$commentsAr[cmnts].user_id}" class="gen">{$commentsAr[cmnts].username}</a></b>
			</td>
			<td bgcolor="#aaaaaa" class="date" width="170px;" bgcolor="#aaaaaa">
				{$commentsAr[cmnts].date}
			</td>
		</tr>	
		<tr>
			<td class="all" colspan="2" bgcolor="#aaaaaa">
				<hr>
				<br>
				{$commentsAr[cmnts].text}<br>
				<hr>
			</td>
		</tr>
		<tr>
			<td class="all" colspan="2" style="padding-bottom:10px;">
				&nbsp;
			</td>
		</tr>
	{/section}
	</table>
			</td>
		<td align="right" width="200"  valign="top" style="padding-top:11px;">
			<!--Мню справа-->
{include file='site/authform.tpl'}	
				<div style="padding-top:10px"></div>	
			<table cellpadding="0" cellspacing="0" width="200">
					<tr>
						<td background="images/menu_up.gif" width="200" height="29" align="center" class="title">
						Записи
						</td>
					</tr>					
					{if $isOwner}
						<tr>
							<td background="images/menu_c.gif" width="200" style="padding-top:10px;padding-right:10px;padding-left:10px;padding-bottom:10px" class="all">
								<a href="journal.php?jrn_act=ctrljrnl" class="href3_a">Управление записями</a>
							</td>
						</tr>
					{/if}
					<tr>
						<td background="images/menu_c.gif" width="200" style="padding-top:10px;padding-right:10px;padding-left:10px;padding-bottom:10px" class="all">
							<table cellpadding="0" cellspacing="0" width="100%">
								{section name=zps loop=$journalsAr}
									<tr>
										<td style="padding-top:3px;" class="gen">
											:: <a href="?uid={$uid}&jrn_act=read&jrn_id={$journalsAr[zps].id}" title="{$journalsAr[zps].date}" class="gen">{$journalsAr[zps].name}</a>
										</td>
									</tr>
									<tr>
										<td class="date" style="padding-bottom:10px;text-align:right;">
											{$journalsAr[zps].date}
										</td>
									</tr>
								{/section}
							</table>
						</td>
					</tr>
					<tr>
						<td background="images/menu_down.gif" width="200" height="10">
						</td>
					</tr>
				</table>

				<div style="padding-top:10px"></div>
			</td>
		</tr>
		<tr>
		</tr>
	</table>
	<table border="0" width="100%" height="100" background="images/bgall.gif" >
			<td valign="bottom" style="padding-top:10px;padding-bottom:10px" class="all" align="center">
			{include file='site/footer.tpl'}
			</td>
		</tr>
		<tr>
			<td background="images/bg_down_logo.gif" width="100%" height="22" valign="bottom" class="footer" align="center">
			Мотоциклы в Николаеве&nbsp;&copy;&nbsp;2007-2010&nbsp;<a class="href3_a" href="http://www.motolife.mk.ua">motolife.mk.ua</a>
			</td>
		</tr>
	</table>